define(function (require, exports) {
	var util = require('lm-util');
	var handlebars = require('handlebars');
	var ui = require('lm-ui');
	var mvc = require('lm-mvc');
	require('validate');
	require('form');

	exports.topMember = function(){
		var $tpl = $('#T_TopMember');
		var url = util.getData($tpl, 'url');

		$.getJSON(url,function(r){
			$('#J_TopMember').html(util.parseHtml($tpl.html(), r.data));
			if ( !$.isEmptyObject(r.data)) { // user is login

			} else { // user not login
				$('#J_TopMember_Form').on('submit', function(){
					$(this).ajaxSubmit();
					return false;
				})
			}
		})
	};


	exports.checkUserStatus = function (status) {
		// 1 状态正常
		// 0 隐身
		// -1 未登录

		// 对此需要有相关的UI做支持
	}

	exports.ajaxLoginListener = function(id){
		$('#'+id).click(function(){

		})
	}
});